import {createStore,combineReducers,applyMiddleware} from 'redux';
import voteReducer from './reducer/vote.reducer';
import thunk from 'redux-thunk';

//reducer 纯函数

let reducer = combineReducers({
    vote:voteReducer
})
console.log(reducer);

let store = createStore(reducer,applyMiddleware(thunk));

// console.log(store.getState())

// store.dispatch({type:'change'})state

// console.log(store.getState())

export default store